﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AKBGame.Util
{
    public class TextFileHelper
    {
        //public static void SaveToXML<T>(T list, string output)
        //{
        //    XmlSerializer serialiser = new XmlSerializer(typeof(T));
        //    TextWriter FileStream = new StreamWriter(output);
        //    serialiser.Serialize(FileStream, list);
        //    FileStream.Close();
        //}

        public static string LoadString(string input)
        {
            string text = File.ReadAllText(input);
            return text;
        }

        public static byte[] LoadByte(string input)
        {
            byte[] byteArray = File.ReadAllBytes(input);
            return byteArray;
        }
    }
}
